
#ifndef __DB_EXCEPTION_H__
#define __DB_EXCEPTION_H__

#ifdef DLLEXPORT
#undef DLLEXPORT
#endif

#ifdef BASEDB_EXPORTS
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif

#ifndef	_ORACLE
class DLLEXPORT CDBException
{
public:
	unsigned char msg[1024];
	int code;
	unsigned char sqlstate[1024];
	char stm_text[2048];
	char var_info[256];
	enum{disabled=0,enabled=1};
public:
	CDBException();
};

#else
#define CDBException otl_exception
#endif

#endif	//__DB_EXCEPTION_H__

